# 1. 导入模块
import requests

# 2. 发送请求, 获取响应
response = requests.get('http://www.baidu.com')
# print(response)
# 3. 获取响应数据
# print(response.encoding) # ISO-8859-1
# response.encoding = 'utf8'
# print(response.text)
print(response.content.decode())
